home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / pdc / libsrc / stringlib / makefile < prev    next >
Encoding:
Makefile  |  1990-04-07  |  1.4 KB  |  44 lines

  1. #
  2. CC    = ccx
  3. #
  4. #    In order to recompile some of these library files, you need the
  5. #    standard Amiga header files that can be purchased directly from
  6. #    Commodore as part of the Native Developer Update.  If you own one of
  7. #    the commercial C compilers, their headers will a suffice.  In
  8. #    order to build these library functions, be sure that PDC knows where
  9. #    to find your Amiga header files.  (Here, I use NDU:include.h)
  10. #
  11. CFLAGS    = +INDU:include.h
  12. #CFLAGS    = +INDU:include.h -Wa-d
  13.  
  14. LIBRARIAN    = libr
  15. INSERT        = -r
  16. SORT        = -x
  17. RM        = delete
  18.  
  19. SRC1 = bcmp.c bcopy.c bzero.c index.c memccpy.c memchr.c memcmp.c
  20. SRC2 = memcpy.c memset.c rindex.c strcat.c strchr.c strcmp.c strcpy.c strcspn.c
  21. SRC3 = strerror.c strlen.c strncat.c strncmp.c strncpy.c strpbrk.c strrchr.c
  22. SRC4 = strspn.c strstr.c strtok.c tolower.c toupper.c
  23. SRCX = strdup.c strndup.c strdcat.c
  24.  
  25. OBJ1 = bcmp.o bcopy.o bzero.o index.o memccpy.o memchr.o memcmp.o
  26. OBJ2 = memcpy.o memset.o rindex.o strcat.o strchr.o strcmp.o strcpy.o strcspn.o
  27. OBJ3 = strerror.o strlen.o strncat.o strncmp.o strncpy.o strpbrk.o strrchr.o
  28. OBJ4 = strspn.o strstr.o strtok.o tolower.o toupper.o
  29. OBJX = strdup.o strndup.o strdcat.o
  30.  
  31. .SUFFIXES:    .o .a .s .c .lib
  32.  
  33. .c.o:
  34.     $(CC) $(CFLAGS) -c $*.c
  35.  
  36. All: $(OBJS) collect
  37.  
  38. collect: $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJX)
  39.     $(LIBRARIAN) $(INSERT) $(SORT) PDC:lib/PDC.lib $(OBJ1) $(OBJ2) $(OBJ3)
  40.     $(LIBRARIAN) $(INSERT) $(SORT) PDC:lib/PDC.lib $(OBJ4) $(OBJX)
  41.  
  42. clean:
  43.     delete \#?.o
  44.